package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单退款
 * </p>
 *
 * @author chenxuebin
 * @since 2018-08-22
 */
@TableName("t_order_refund")
public class OrderRefund extends Model<OrderRefund> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;

    /**
     * 支付总金额
     */
	private BigDecimal realpay;
    /**
     * 退款金额
     */
	private BigDecimal refund;
    /**
     * 订单ID
     */
	private Long oid;
	private Long ogid;
    /**
     * 订单交易编号
     */
	@TableField("order_no")
	private String orderNo;

	@TableField("transaction_id")
	private String transactionId;

    /**
     * 退款编号
     */
	@TableField("refund_no")
	private String refundNo;
	@TableField("goods_name")
	private String goodsName;

    /**
     * 备注
     */
	private String remark;

	private String pic;
    /**
     * 退款状态@1：受理中；2：等待退款；3：退款成功; 4:退款失败
     */
	private Integer status;

	private Integer state;

	private String tkliyou;
	private Integer applynum;

    /**
     * IP
     */
	private String ip;
    /**
     * 终端
     */
	private String terminal;
	private Long uid;
	private Long mid;
	private Long mpid;

    /**
     * 发起退款时间
     */
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public BigDecimal getRealpay() {
		return realpay;
	}

	public void setRealpay(BigDecimal realpay) {
		this.realpay = realpay;
	}

	public BigDecimal getRefund() {
		return refund;
	}

	public void setRefund(BigDecimal refund) {
		this.refund = refund;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getRefundNo() {
		return refundNo;
	}

	public void setRefundNo(String refundNo) {
		this.refundNo = refundNo;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getTerminal() {
		return terminal;
	}

	public void setTerminal(String terminal) {
		this.terminal = terminal;
	}

	public Long getOgid() {
		return ogid;
	}

	public void setOgid(Long ogid) {
		this.ogid = ogid;
	}

	public String getTkliyou() {
		return tkliyou;
	}

	public void setTkliyou(String tkliyou) {
		this.tkliyou = tkliyou;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Integer getApplynum() {
		return applynum;
	}

	public void setApplynum(Integer applynum) {
		this.applynum = applynum;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "OrderRefund{" +
			"id=" + id +
			", realpay=" + realpay +
			", refund=" + refund +
			", oid=" + oid +
			", orderNo=" + orderNo +
			", refundNo=" + refundNo +
			", remark=" + remark +
			", status=" + status +
			", ip=" + ip +
			", terminal=" + terminal +
			", uid=" + uid +
			", mid=" + mid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
